package com.xinzhi;

import cn.hutool.crypto.digest.DigestUtil;
import cn.hutool.crypto.digest.MD5;

public class Main_test {
    public static void main(String[] args) {
//        String phone = "12345678909";
//        System.out.println(phone.matches("1[0-9]{10}"));
//        String pwd = "www123456111";
//        System.out.println(pwd.matches("\\w{8,12}"));
//        String pid = "123456789987654321";
//    //      123456
//        //  年份 19 20  \\d  月份 01 -12   日期
//        System.out.println(pid.matches("1\\d{16}[[0-9]|X]"));
        String pwd = "www123456111";
        String s2 = MD5.create().digestHex16(pwd);
        String s = DigestUtil.md5Hex16(pwd);
        String pwd1 = "www123456111";
        String s1 = DigestUtil.md5Hex16(pwd1);
        System.out.println(s.equals(s1));
    }
}
